Namespace - LJCDBMessage
Parameters
dataObject - The record object.
baseDefinition - The Base DataDefinition columns.
propertyNames - The column property names.
Returns
The DbColumns
object.
Syntax
C# |
public static DbColumns RequestDataColumns(Object dataObject, DbColumns baseDefinition, List<String> propertyNames = null)
|
Gets Request data columns from the baseDefinition using the propertyNames.
Remarks
Generally used in the Add() and Update() manager methods to define the
columns to be added or updated and the values to use in the add or
update.
This method attempts to default the property names to the dataObject
ChangedNames property if it exists and the propertyNames parameter has
no values.
Creates a DbColumns collection of data definitions from the
baseDefinition parameter whose PropertyName values match the names in
the propertyNames parameter.
The dataObject property names must also match the names in the
propertyNames parameter and the data value must not be null for the
data definition to be included.
The DbColumn definitions include the dataObject value. The dataObject
property values are retrieved using reflection.
A Data Column is excluded if it is an AutoIncrement column.
The value is set to "null" if the original value is "-null" or "-".
Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.